//
//  PieView.h
//  PieDrawing
//
//  Created by Yang on 10/14/10.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "SC_PieChartData.h"

@protocol SC_PieViewDelegate

- (void)needReloadMarkersFor:(NSArray *)dataArray Dots:(NSArray *)dotArray;


@end


@interface SC_PieView : UIView {

	float spaceHeight; //高度
	float scaleY ; 
	NSMutableArray *dataArray;
	
	// 保存标注的基准点
	NSMutableArray *dotArray;
	
	id <SC_PieViewDelegate> delegate;
}

@property(nonatomic, assign)  float spaceHeight;
@property(nonatomic, assign) float scaleY;

@property(nonatomic,retain)NSMutableArray *dotArray;

@property(nonatomic,assign)id <SC_PieViewDelegate> delegate;

- (void)resetData:(NSArray *)array;
- (CGGradientRef)newGradientWithColors:(UIColor**)colors locations:(CGFloat*)locations
								 count:(int)count;

- (void)resetFrame:(CGRect )frame;

@end
